<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./../../WEB-INF/templates/Template.xhtml">

            <ui:define name="content">
                <c:set var ="thanhvien" value="${admin_MemberController.thanhVienTemp}" />

                <div class= "body-content" >

                    <div class ="right-cont">
                        <div id="contented">
                            <div class="bg_account_T">
                                Quản Lý Bình Luận
                            </div>
                            <div class="box-profile">
                                <fieldset>
                                    <legend>Thông Tin Bình Luận</legend>


                                    <h:form>
                                        <h:inputHidden value="#{admin_CommentController.binhLuanTemp.mabinhluan}"/>
                                        <div class="field">
                                            <label> Username</label><h:inputText id="userId" value="#{admin_CommentController.binhLuanTemp.thanhvien.username}" styleClass="f-input"
                                                                                 required="true"
                                                                                 requiredMessage="Vui lòng nhập tài khoản"/>
                                            <h:message for="userId" styleClass="error" /><br/>
                                        </div>
                                        
                                        <div class="field">
                                            <h:inputHidden value="#{admin_CommentController.binhLuanTemp.sanpham.masanpham}"/>
                                            <label>Sản Phẩm</label><h:inputText id="sanphamId" value="#{admin_CommentController.binhLuanTemp.sanpham.tensanpham}" styleClass="f-input"
                                                                                required="true"
                                                                                requiredMessage="Vui lòng nhập sản phẩm"/>
                                            <h:message for="sanphamId" styleClass="error" /><br/>
                                        </div>
                                        <div class="field">                   
                                            <label>Nội Dung</label><h:inputText id ="noidungId"  value="#{admin_CommentController.binhLuanTemp.noidung}" styleClass="f-input"
                                                                                 required="true"
                                                                                 requiredMessage="Vui lòng nhập ngày sinh"/>
                                            <h:message for="noidungId" styleClass="error" /><br/>
                                        </div>
                                        
                                        <h:commandButton value="Cập Nhật" action="#{admin_CommentController.UpdateComment()}"/>
                                    </h:form>
                                </fieldset>
                            </div>
                        </div>
                    </div>
                </div>
            </ui:define>

        </ui:composition>

    </body>
</html>
